package com.woniu.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("sys/adminList").setViewName("/sys/adminList");
        registry.addViewController("/").setViewName("/login");
        registry.addViewController("login").setViewName("/login");
        registry.addViewController("sys/index").setViewName("/sys/index");
        registry.addViewController("sys/main").setViewName("/sys/main");
        registry.addViewController("sys/roleList").setViewName("/sys/roleList");
        registry.addViewController("sys/addRole").setViewName("/sys/addRole");
        registry.addViewController("sys/menuList").setViewName("/sys/menuList");
        registry.addViewController("sys/pmList").setViewName("/sys/pmList");
        registry.addViewController("sys/complainList").setViewName("/sys/complainList");
        registry.addViewController("sys/merchantList").setViewName("/sys/merchantList");
        registry.addViewController("sys/activityList").setViewName("/sys/activityList");
        registry.addViewController("sys/ac_complainList").setViewName("/sys/ac_complainList");
        registry.addViewController("sys/service_commentList").setViewName("/sys/service_commentList");
        registry.addViewController("sys/dynamic_commentList").setViewName("/sys/dynamic_commentList");
        registry.addViewController("403").setViewName("/403");
    }
}
